<%@include file="/header.jsp" %>


<div id="breadcrump">
    <ul id="breadcrump-list">
        <li>&raquo; Categorie admin</li>
    </ul>
</div>

<a href="NewCategory">Nieuwe categorie</a>
<table border="1">
    <tr>
        <th>Naam</th>
        <th></th>
        <th></th>
        <th></th>
    </tr>
    <c:forEach var="category" items="${categories}">
        <c:url value="/backend/ProductAdmin" var="productAdminUrl">
            <c:param name="category_id" value="${category.id}" />
        </c:url>
        <c:url value="/backend/EditCategory" var="editCategoryUrl">
            <c:param name="category_id" value="${category.id}" />
        </c:url>
        <c:url value="/backend/DeleteCategory" var="deleteCategoryUrl">
            <c:param name="category_id" value="${category.id}" />
        </c:url>
        
        <tr>
            <td>${fn:escapeXml(category.name)}</td>
            <td><a href="${productAdminUrl}">Producten</a></td>
            <td><a href="${editCategoryUrl}">Wijzigen</a></td>
            <td><a href="${deleteCategoryUrl}">Verwijderen</a></td>
        </tr>
    </c:forEach>
</table>

<%@include file="/footer.jsp" %>